package com.canaan.business.domain.basic;

import com.canaan.common.annotation.TableName;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.canaan.common.annotation.Excel;
import com.canaan.common.core.domain.BaseEntity;

/**
 * 条码规则对象 wms_code_rule
 *
 * @author ruoyi
 * @date 2023-01-29
 */
@TableName("wms_code_rule")
public class WmsCodeRule extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 编号 */
    @Excel(name = "编号")
    private String no;

    /** 规则名称 */
    @Excel(name = "规则名称")
    private String ruleName;

    /** 规则类型：BARCODE-条码;BATCH-批次号 */
    @Excel(name = "规则类型：BARCODE-条码;BATCH-批次号")
    private String ruleType;

    /** 是否启用：Y是N否 */
    @Excel(name = "是否启用：Y是N否")
    private String isEnable;

    /** 是否默认：Y是N否 */
    @Excel(name = "是否默认：Y是N否")
    private String isDefault;

    /** 前缀 */
    @Excel(name = "前缀")
    private String prefix;

    /** 分隔符 */
    @Excel(name = "分隔符")
    private String breakCode;

    /** 批次条码规则 */
    @Excel(name = "批次条码规则")
    private String ruleContent;

    /** 是否删除：1是 0否 */
    private String delFlag;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setNo(String no)
    {
        this.no = no;
    }

    public String getNo()
    {
        return no;
    }
    public void setRuleName(String ruleName)
    {
        this.ruleName = ruleName;
    }

    public String getRuleName()
    {
        return ruleName;
    }
    public void setRuleType(String ruleType)
    {
        this.ruleType = ruleType;
    }

    public String getRuleType()
    {
        return ruleType;
    }
    public void setIsEnable(String isEnable)
    {
        this.isEnable = isEnable;
    }

    public String getIsEnable()
    {
        return isEnable;
    }
    public void setIsDefault(String isDefault)
    {
        this.isDefault = isDefault;
    }

    public String getIsDefault()
    {
        return isDefault;
    }
    public void setPrefix(String prefix)
    {
        this.prefix = prefix;
    }

    public String getPrefix()
    {
        return prefix;
    }
    public void setBreakCode(String breakCode)
    {
        this.breakCode = breakCode;
    }

    public String getBreakCode()
    {
        return breakCode;
    }
    public void setRuleContent(String ruleContent)
    {
        this.ruleContent = ruleContent;
    }

    public String getRuleContent()
    {
        return ruleContent;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("no", getNo())
            .append("ruleName", getRuleName())
            .append("ruleType", getRuleType())
            .append("isEnable", getIsEnable())
            .append("isDefault", getIsDefault())
            .append("prefix", getPrefix())
            .append("breakCode", getBreakCode())
            .append("ruleContent", getRuleContent())
            .append("remark", getRemark())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("createTime", getCreateTime())
            .toString();
    }
}
